// uno.config.ts
import { defineConfig } from 'unocss'
import presetUno from '@unocss/preset-uno'
import presetAttributify from '@unocss/preset-attributify'
import transformerVariantGroup from '@unocss/transformer-variant-group'
import transformerDirectives from '@unocss/transformer-directives'
export default defineConfig({
  presets: [
    presetUno(),
    presetAttributify({
      /* preset options */
      prefix: 'un-',
      prefixedOnly: true,
    }),
  ],
  rules: [['right-img', { 'background-image': "url('@/assets/images/left.png')" }]],
  shortcuts: {
    // 多个实用工具的快捷方式
    'header-text': 'text-white font-bold text-lg font-serif text-center',
    // 单个实用工具别名
  },
  transformers: [transformerVariantGroup(), transformerDirectives()],
})
